<div id="page">
	<h3>Adverts</h3>
	<p>Escolha a regra do banner</p>
	<form action="<?= $html->url('/pbanner/pbanner_adverts/rule/' . $this->params['pass'][0]); ?>" method="post" enctype="application/x-www-form-urlencoded">
		<p>
			<label for="Identifier">Regra do anuncio:</label><br />
			<?php
				foreach($rules as $rule){
					$options[$rule['PbannerRule']['id']] = $rule['PbannerRule']['name'];
				}
			?>
			<?= $form->radio('PbannerRule.rule', $options, array('separator' => '<br/>')); ?>
		</p>
		<div class="clear"></div>
		<p>
			<?= $form->submit('Save', array('class' => 'button')); ?>
		</p>
	</form>
</div>
<div id="sidebar">
	<h4>About</h4>
	<p>Pequeno relatório do funcionamento do PBanner.</p>
	<?= $this->renderElement('menu', $menu); ?>
	<?= $this->renderElement('links'); ?>
</div>
<?= $this->renderElement('footer'); ?>